package com.heer.gymnasium.module.hobby.beans;

import com.heer.gymnasium.module.hobby.views.HobbyActivity;
import com.heer.gymnasium.module.main.beans.CategoryBean;
import com.heer.gymnasium.module.my.beans.UserBean;
import com.heer.gymnasium.module.store.beans.AreaBean;

import java.util.List;

/**
 * Created by yan
 * on 2018/3/16
 * 爱好信息实体类
 */

public class HobbyInfoBean {
    private List<CategoryBean> category;
    private List<AreaBean> area;
    private String time;
    private String isAccept;

    public List<CategoryBean> getCategory() {
        return category;
    }

    public void setCategory(List<CategoryBean> category) {
        this.category = category;
    }

    public List<AreaBean> getArea() {
        return area;
    }

    public void setArea(List<AreaBean> area) {
        this.area = area;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getIsAccept() {
            return isAccept;
    }

    public void setIsAccept(String isAccept) {
        this.isAccept = isAccept;
    }

    /**
     *
     * @param userBean
     * @return
     */
    public static HobbyInfoBean dataChange(UserBean userBean) {
        HobbyInfoBean bean = new HobbyInfoBean();
        bean.setCategory(userBean.getHobby_type());
        bean.setArea(userBean.getHobby_adcode());
        bean.setTime(userBean.getHobby_time());
        bean.setIsAccept(userBean.getIsmsg());
        return bean;
    }
}
